import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const course: AppRouteModule = {
  path: '/course',
  name: 'course',
  component: LAYOUT,
  redirect: '/course/list',
  meta: {
    icon: 'ion:menu-outline',
    title: t('routes.course.course'),
    orderNo: 10,
  },
  children: [
    {
      path: 'courseList',
      name: 'CourseList',
      component: () => import('/@/views/course/index.vue'),
      meta: {
        title: t('routes.course.courseList'),
      },
    },
  ],
};

export default course;
